package cz.ctu.guiproject.server.dispatcher;

public class DispatcherTest {
	
	private Object lock;

	public DispatcherTest() {
		lock = new Object();
		init();
	}

	private void init() {
//		Dispatcher dispatcher = Dispatcher.getInstance(0, null);
                Dispatcher dispatcher = Dispatcher.getInstance();
                dispatcher.init(0, null);
                
                
		synchronized(lock) {
			try {
				System.out.println("waiting...");
				lock.wait();
			} catch (InterruptedException e) {
				System.err.println(e.getMessage());
			}
		}
	}

	public static void main(String[] args) {
		new DispatcherTest();
	}
}
